package com.yphone.ui.pay.contract;

import android.content.Context;

import com.yphone.base.IBasePresenter;
import com.yphone.base.IBaseView;
import com.yphone.net.IUIDataListener;

public class OrderContract {
    public interface IOrderPresenter extends IBasePresenter{
        void getQRCode(String serverId,String orderNo,int num);
        void checkOrderState(String orderNo);
    }

    public interface IView extends IBaseView<OrderContract.IOrderPresenter> {
        Context getContext();
        void updateQRCode(String img64);

        void paySuccess();

        void getOrderError(String msg);
    }

    public interface IModel{
        void getQRCode(IUIDataListener listener,String serverId,String orderNo,int num);
        void checkOrderState(IUIDataListener listener,String orderNo);
    }
}
